<!--顶部开始-->
    <div class="top">
    	<div class="top1">
    	   <div class="top3">
    	   	<?php if(isset($_SESSION['uid']) || isset($_SESSION['nicname'])){ ?>
    	   	 <ul class="denglu one">
    			<li class="li1" style="width: 8px;">
    				<a href="{|U:'Index/Geren/index'}"><img src="__ROOT__/{$_SESSION.hearimg}" alt="" style="width: 30px;height: 30px;position: relative;left: -8px;top: 7px;"/></a>
    			</li>
    			<li class="li2"><span>{$_SESSION.nicname}</span>&nbsp;&nbsp;&nbsp;<a href="{|U:'Index/Login/out'}">退出</a></li>
    		  </ul>
    	   	 <?php }else{ ?>
    		 <ul class="denglu">
    			<li class="li1"><a href="{|U:'Index/Login/denglu'}">登陆</a></li>
    			<li class="li2"><a href="{|U:'Index/Login/index'}">注册</a></li>
    		 </ul>
    		 <?php } ?>
    		 <ul class="gowu">
    		 	<li class="li2"><a href="{|U:'Index/Shop/index'}" >购物车<span class="zongshuliang"><if value="$_SESSION[cart][total_rows]">{$_SESSION[cart][total_rows]}<else/>0</if></span> 件</a></li>
    			<li class="li1"><img src="__STATIC__/public/images/logo.png" alt="" /></li>
    			
    		 </ul>
    	   </div>
    	</div>
    	<div class="top2">
    		<div class="top4">
    			<a class="wosai" href=""><img src="" alt="" /></a>
	    	   	 <ul class="caidan">
	    			<li class="li1"><a href="{|U:'Index/Index/index'}"></a></li>
	    			<li class="li2"><a href="{|U:'Index/Daohang/index'}">市集</a></li>
	    			<li class="li2"><a href="{|U:'Index/List/index',array('cid'=>23)}">服装</a></li>
	    			<li class="li2"><a href="{|U:'Index/List/index',array('cid'=>112)}">饰品</a></li>
	    			<li class="li2"><a href="{|U:'Index/List/index',array('cid'=>124)}">鞋包</a></li>
	    			<li class="li3"><a href="{|U:'Index/List/index',array('cid'=>137)}">居家</a></li>
	    			<li class="li4"><a href="{|U:'Index/Index/index'}"><img src="__STATIC__/public/images/wosai.png" alt="" /></a></li>
	    		 </ul>
	    		 <ul class="sousuo">
	    			<li class="li1">
	    				<form action="" method="post">
	    					<input class="sou" type="" placeholder="请输入要搜索的关键词" name="" value="" />
	    					<input class="tijiao" type="submit" value=""/>
	    				</form>
	    			</li>
	    			<li class="li2"><a href="{|U:'Index/List/index',array('cid'=>151)}">数码</a></li>
	    			<li class="li3"><a href="{|U:'Index/List/index',array('cid'=>163)}">文具</a></li>
	    		</ul>
    	   </div>
    	</div>
    </div>
    <!--顶部结束-->
